<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableUserGroup extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//
		Schema::create('user_group', function($table){
			$table->bigIncrements('id');
			$table->string('group', 30);
			$table->string('description')->nullable();
			$table->timestamps();
			$table->softDeletes();

			$table->unique('group');
			$table->index('group');
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
	}

}
